package com.hjm.project.team.teamYlInfo.mapper;

import java.util.List;
import java.util.Map;

import com.hjm.project.team.teamYlInfo.domain.TeamYlInfo;
import com.hjm.project.team.teamYlInfo.domain.TeamYlInfoDo;

/**
 * 团员信息Mapper接口
 * 
 * @author maker-platform
 * @date 2021-04-10
 */
public interface TeamYlInfoMapper 
{
    /**
     * 查询团员信息
     * 
     * @param ylId 团员信息ID
     * @return 团员信息
     */
    public TeamYlInfoDo selectTeamYlInfoById(String ylId);

/**
     * 查询全部团长
     *
     * @return 团长信息
     */
    public List<TeamYlInfo> selectAllTeamYl(TeamYlInfo teamYlInfo);


    public List<TeamYlInfoDo> selectTeamYlInfoList(TeamYlInfoDo teamYlInfoDo);


    /**
     * 新增团员信息
     * 
     * @param teamYlInfo 团员信息
     * @return 结果
     */
    public int insertTeamYlInfo(TeamYlInfo teamYlInfo);
    public Integer selectYlId();

    /**
     * 修改团员信息
     * 
     * @param teamYlInfo 团员信息
     * @return 结果
     */
    public int updateTeamYlInfo(TeamYlInfo teamYlInfo);

    /**
     * 删除团员信息
     * 
     * @param ylId 团员信息ID
     * @return 结果
     */
    public int deleteTeamYlInfoById(String ylId);

    /**
     * 批量删除团员信息
     * 
     * @param ylIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTeamYlInfoByIds(String[] ylIds);


    /**
     * 获取一个团队编号
     * @Param []
     * @Return int
     */
    public String selectTeamCode();

    /**
     * 获取团长信息
     * @param agentNum
     * @return
     */
    public Map selectTeamInfoByAgentNum(String agentNum);

}
